package com.budweiser.commons.utils;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class TreeData {
	private int code = 0;
	private String msg = "加载成功！";
	private Object data;

	public TreeData backData(Object data) {
		return new TreeData(0, "加载成功！", data);
	}
}
